# 练习:
#   已知有列表:
#     L = [3, 5]
#     用索引和切片操作将原列表改为:
#     L = [1, 2, 3, 4, 5, 6]
#     将列表返转后删除最后一个元素,再打印此列表
#     ...
#     print(L)  # [6, 5, 4, 3, 2]


L = [3, 5]
L[1:1] = [4]
L[3:3] = [6]
L[0:0] = [1, 2]
print(L)  # [1, 2, 3, 4, 5, 6]

L = L[::-1]
del L[-1]  # 删除最后一个元素
print(L)
